<?php

$sRequestController = str_replace('.html', '', Yii::app()->request->requestUri);
$sRequestController    = explode('/', $sRequestController);

 if ( !isset($sRequestController[2]))
 {
     $sRequestController[2] = Yii::app()->controller->module->defaultController;
 }

$sRequestController = '/'.$sRequestController[1].'/'.$sRequestController[2];

?>

<ul>
    <?php foreach ( $aMenus as $sMenuLink => $sMenuName ) : ?>
    <li <?php if ( $sRequestController == $sMenuLink ) : ?>class="active"<?php endif; ?>><a href="<?= Yii::app()->controller->createUrl($sMenuLink); ?>"><?= $sMenuName; ?></a></li>
    <?php endforeach; ?>
</ul>